@extends('admin::layouts.master')
@section('title')
    APP版本管理
@endsection
@section('tab')
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">

                    <div class="layui-card-body">
                    <div class="layui-card-body layui_overflow_y">

                        <table class="layui-table layui-form">
                            <thead>
                            <tr>
                                <th colspan="66">安卓</th>
                            </tr>
                            <tr>
                                <th>APP端</th>
                                <th>版本号</th>
                                {{--                                <th>下载链接</th>--}}
                                <th>二维码</th>
                                <th>是否强制更新</th>
                                <th>版本更新说明</th>
                                {{--                                <th>历史版本</th>--}}
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>用户端</td>
                                <th>{{$data['android']['user']['edition']}}</th>
                                {{--                                <th>{{$data['android']['user']['url']}}</th>--}}
                                <th>
                                    <div class="right" style="" id="passenger_qrcode">
                                        {!! $data['android']['user']['code']!!}
                                    </div>
                                </th>
                                <th>{{$data['android']['user']['is_force_name']}}</th>
                                <th>{{$data['android']['user']['content']}}</th>
                            </tr>
                            <tr>
                                <td>商户端</td>
                                <th>{{$data['android']['shop']['edition']}}</th>
                                {{--                                <th>{{$data['android']['shop']['url']}}</th>--}}
                                <th>
                                    <div class="right" style="" id="passenger_qrcode">
                                        {!! $data['android']['shop']['code']!!}
                                    </div>
                                </th>
                                <th>{{$data['android']['shop']['is_force_name']}}</th>
                                <th>{{$data['android']['shop']['content']}}</th>
                            </tr>

                        </table>
                    </div>

                    <div class="layui-card-body layui_overflow_y">

                        <table class="layui-table layui-form">
                            <thead>
                            <tr>
                                <th colspan="66">苹果</th>
                            </tr>
                            <tr>
                                <th>APP端</th>
                                <th>版本号</th>
                                {{--                                <th>下载链接</th>--}}
                                <th>二维码</th>
                                <th>是否强制更新</th>
                                <th>版本更新说明</th>
                                {{--                                <th>历史版本</th>--}}
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>用户端</td>
                                <th>{{$data['ios']['user']['edition']}}</th>
                                {{--                                <th>{{$data['ios']['user']['url']}}</th>--}}
                                <th>
                                    <div class="right" style="" id="passenger_qrcode">
                                        {!! $data['ios']['user']['code']!!}
                                    </div>
                                </th>
                                <th>{{$data['ios']['user']['is_force_name']}}</th>
                                <th>{{$data['ios']['user']['content']}}</th>
                            </tr>
                            <tr>
                                <td>商户端</td>
                                <th>{{$data['ios']['shop']['edition']}}</th>
                                {{--                                <th>{{$data['ios']['shop']['url']}}</th>--}}
                                <th>
                                    <div class="right" style="" id="passenger_qrcode">
                                        {!! $data['ios']['shop']['code']!!}
                                    </div>
                                </th>
                                <th>{{$data['ios']['shop']['is_force_name']}}</th>
                                <th>{{$data['ios']['shop']['content']}}</th>
                            </tr>

                        </table>
                    </div>

                </div>
            </div>
        </div>
    </div>
@endsection

@section('tab_js')
    <script>
        layui.use(['form'], function () {
            var form = layui.form;

            //监听指定开关-修改状态
            form.on('switch(change_state)',
                function (obj) {
                    change_state(this);
                });

            //监听搜索
            form.on('submit(sreach)',
                function (data) {
                    var $_url = full_url('{{route('admin_admin_index')}}', data.field);
                    location_redirect($_url)
                });
            form.render();
        });
    </script>
@endsection




